home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
loancalc.arc
/
LOANNAGN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-28
|
395b
|
14 lines
FUNCTION NotAgain: boolean;
{ see if the user would like to rerun the program }
VAR
c: char;
BEGIN
write('Would you like another calculation of this type? (y/n) ');
read(kbd, c); writeln(c);
WHILE NOT (c IN ['y', 'Y', 'n', 'N']) DO
BEGIN
write('Type y for yes, or n for no: ');
read(trm, c); writeln;
END;
NotAgain := c IN ['n', 'N']
END; { NotAgain }